package sprite;

import java.awt.*;

public class Sprite extends Transform{

	private Image _img;
	

	public Sprite(String path){
		super();
		_img = new Image(path);
		setOrigin(_img.getWidth()/2,_img.getHeight()/2);
		translate(0, 0);
	}


	public void show(Graphics2D g){
		g.drawImage(_img.getImage(), getTransform(), null);
	}
	

	public Image getImage(){
		return _img;
	}


	
	
}
